.product-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
      gap: 10px;
      padding: 20px;
      margin: auto;
    }

    @media (max-width: 768px) {
      .product-grid {
        padding: 10px;
        margin-top: 7.5px;
      }
    }

    @media (min-width: 768px) {
      .product-grid {
        padding: 10px;
        margin-top: 7.5px;
      }
    }

    .product {
      background: rgb(255, 255, 255);
      border-radius: 6px;
      padding: 12px;
      transition: box-shadow 0.3s ease;
      cursor: pointer;
      margin-bottom: 5px;
    }

    .product {
      box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .product img {
      width: 100%;
      height: 160px;
      object-fit: contain;
      margin-bottom: -30px;
    }

    .title {
      font-size: 14px;
      font-weight: bold;
      color: #212121;
      margin: 6px 0 4px;
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      text-overflow: ellipsis;
    }

    .price {
      color: #212121;
      font-weight: bold;
      font-size: 15px;
    }

    .original-price {
      text-decoration: line-through;
      color: #878787;
      font-size: 13px;
      margin-left: 5px;
    }

    .rating {
      display: inline-block;
      font-size: 13px;
      background: #ffffff;
      color: rgb(0, 0, 0);
      border-radius: 3px;
      padding: 2px 4px;
      font-weight: bold;
      margin-bottom: 4px;
      margin-left: 2.5px;
      text-align: center;
      justify-content: center;
      align-items: center;
    }

    .star {
      color: green;
    }

    .reviews {
      color: #000000;
      font-size: 12px;
      margin-left: 5px;
    }

    .empty-error {
      margin: 0 auto;
      font-weight: bold;
      white-space: nowrap;
    }
    
    /* Back Button Styles */
    .backBtn {
      width: 100px;
      height: 30px;
      border-radius: 40px;
      border: 1px solid rgba(255, 255, 255, 0.349);
      background-color: rgb(12, 12, 12);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition-duration: 0.3s;
      overflow: hidden;
      float: right;
    }

    .IconContainer {
      width: 25px;
      height: 20px;
      background: linear-gradient(to bottom, rgb(255, 136, 255), rgb(172, 70, 255));
      border-radius: 50px;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
      z-index: 2;
      transition-duration: 0.3s;
    }

    .icon {
      border-radius: 1px;
    }

    .text {
      height: 100%;
      width: 75px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      z-index: 1;
          transition-duration: 0.3s;
      font-size: 1.04em;
    }

    .backBtn:hover .IconContainer {
      width: 90px;
      transition-duration: 0.3s;
    }

    .backBtn:hover .text {
      transform: translate(10px);
      width: 0;
      font-size: 0;
      transition-duration: 0.3s;
    }

    .backBtn:active {
      transform: scale(0.95);
      transition-duration: 0.3s;
    }